<template>
  <div class="common-head">
    <van-nav-bar
      :title="title"
      :left-arrow="true"
      @click-left="$router.go(-1)"
    />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.van-nav-bar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #C2A883;
  /deep/.van-nav-bar__content {
    height: 50px;
  }
  /deep/.van-nav-bar__arrow{
    font-size: 30px;
  }
  /deep/.van-nav-bar__title{
    font-size: 22px;
  }
  .van-icon{
    color: #666;
  }
}
</style>
